
ENT.Base 				= "wac_pl_base"
ENT.Type 				= "anim"

ENT.PrintName			= "Cessna 172SP"
ENT.Author				= "}{ornet/Vest"
ENT.Category			= "WAC Planes"
ENT.Contact    			= ""
ENT.Purpose 			= ""
ENT.Instructions 		= ""
ENT.Spawnable			= true
ENT.AdminSpawnable	= true

ENT.Model			= "models/Cessna/cessna172.mdl"
ENT.RotorPhModel	= "models/props_junk/sawblade001a.mdl"
ENT.RotorModel		= "models/Cessna/cessna172_prop.mdl"
ENT.BackRotorModel	= "models/props_c17/TrapPropeller_Lever.mdl"
ENT.TopRotorDir        = 1
ENT.BackRotorDir	= 0
ENT.TopRotorPos	= Vector(84,0.2,0)
ENT.BackRotorPos	= Vector(-50,0,0)
ENT.EngineForce	= 50
ENT.Weight		= 730
ENT.SmokePos		= Vector(70,0,0)
ENT.FirePos		= Vector(70,0,0)
ENT.ThirdPDist = 380

ENT.WheelInfo={
    {
        mdl="models/Cessna/cessna172_mlwheel.mdl",
        pos=Vector(-15,46,-40),
        friction=10,
        mass=50,
    },
    {
        mdl="models/Cessna/cessna172_mwheel.mdl",
        pos=Vector(-15,-46,-40),
	friction=10,
        mass=50,
    },
    {
        mdl="models/Cessna/cessna172_nwheel.mdl",
        pos=Vector(52,0,-40),
        friction=10,
        mass=50,
    },
}

function ENT:AddSeatTable()
    return{
        [1]={
            Pos=Vector(-3, 10, -11),
            ExitPos=Vector(-4,30,-40),
	    NoHud=true,
            wep={WAC.Helicopter.GetWeapon("No Weapon")},
        },
        [2]={
            Pos=Vector(-3, -10, -11),
            ExitPos=Vector(-4,-30,-40),
            NoHud=true,
            wep={WAC.Helicopter.GetWeapon("No Weapon")},
        },
        [3]={
            Pos=Vector(-35, 9, -16),
            ExitPos=Vector(-35,30,-40),
            NoHud=true,
            wep={WAC.Helicopter.GetWeapon("No Weapon")},
        },
        [4]={
            Pos=Vector(-35, -9, -16),
            ExitPos=Vector(-35,-30,-40),
            NoHud=true,
            wep={WAC.Helicopter.GetWeapon("No Weapon")},
        },
    }
end

function ENT:AddSounds()
	self.Sound={
		Start=CreateSound(self.Entity,"WAC/Heli/merlin_start_idle_stop.wav"),
		Blades=CreateSound(self.Entity,"CH46.External"),
		Engine=CreateSound(self.Entity,"CH46.Internal"),
		MissileAlert=CreateSound(self.Entity,"HelicopterVehicle/MissileNearby.mp3"),
		MissileShoot=CreateSound(self.Entity,"HelicopterVehicle/MissileShoot.mp3"),
		MinorAlarm=CreateSound(self.Entity,"HelicopterVehicle/MinorAlarm.mp3"),
		LowHealth=CreateSound(self.Entity,"HelicopterVehicle/LowHealth.mp3"),
		CrashAlarm=CreateSound(self.Entity,"HelicopterVehicle/CrashAlarm.mp3"),
	}
end
